﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masterPage/admin/Supplier.master"
    AutoEventWireup="true" CodeFile="SupplierQuote.aspx.cs" Inherits="Trade_trade_quote" %>

<%@ MasterType VirtualPath="~/masterPage/admin/Supplier.master" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rtsQuote">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rtsQuote" />
                    <telerik:AjaxUpdatedControl ControlID="rmpQuote" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rmpQuote">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rmpQuote" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

    <asp:Literal ID="ltlInquiryID" runat="server" Visible="false"></asp:Literal>
    <asp:Literal ID="ltlQuoteID" runat="server" Visible="false"></asp:Literal>
    <table>
        <tr>
            <td>
                <telerik:RadTabStrip ID="rtsQuote" runat="server" MultiPageID="rmpQuote" SelectedIndex="0">
                    <Tabs>
                        <telerik:RadTab Text="创建标准报价单" Selected="True">
                        </telerik:RadTab>
                        <telerik:RadTab Text="上传自定义报价单">
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>
                <telerik:RadMultiPage ID="rmpQuote" runat="server" SelectedIndex="0">
                    <telerik:RadPageView ID="rpvStdForm" runat="server">
                        <fieldset>
                            <legend>报价</legend>
                            <table>
                                <colgroup>
                                    <col width="100" />
                                    <col width="100" />
                                    <col width="100" />
                                    <col width="50" />
                                    <col width="100" />
                                    <col width="50" />
                                    <col width="100" />
                                    <col width="50" />
                                </colgroup>
                                <tr>
                                    <td>
                                        采购零件
                                    </td>
                                    <td>
                                        <asp:Literal ID="ltlPartName" runat="server"></asp:Literal>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        询价单号
                                    </td>
                                    <td>
                                        <asp:Literal ID="ltlTrackingNumber" runat="server"></asp:Literal>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        采购数量
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        数量1
                                    </td>
                                    <td>
                                        <asp:Literal ID="ltlQty1" runat="server"></asp:Literal>
                                    </td>
                                    <td>
                                        数量2
                                    </td>
                                    <td>
                                        <asp:Literal ID="ltlQty2" runat="server"></asp:Literal>
                                    </td>
                                    <td>
                                        数量3
                                    </td>
                                    <td>
                                        <asp:Literal ID="ltlQty3" runat="server"></asp:Literal>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        单位报价
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="rntbUnitPrice1" runat="server" Culture="zh-CN" Label="RMB"
                                            MinValue="0" Type="Currency">
                                            <NumberFormat AllowRounding="true" DecimalDigits="2" KeepNotRoundedValue="false" />
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        /<asp:Literal ID="ltlUnit1" runat="server"></asp:Literal>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请报价"
                                            ControlToValidate="rntbUnitPrice1" ValidationGroup="submitbasic"></asp:RequiredFieldValidator>
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="rntbUnitPrice2" runat="server" Culture="zh-CN" Label="RMB"
                                            MinValue="0" Type="Currency">
                                            <NumberFormat AllowRounding="true" DecimalDigits="2" KeepNotRoundedValue="false" />
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        /<asp:Literal ID="ltlUnit2" runat="server"></asp:Literal>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请报价"
                                            ControlToValidate="rntbUnitPrice2" ValidationGroup="submitbasic"></asp:RequiredFieldValidator>
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="rntbUnitPrice3" runat="server" Culture="zh-CN" Label="RMB"
                                            MinValue="0" Type="Currency">
                                            <NumberFormat AllowRounding="true" DecimalDigits="2" KeepNotRoundedValue="false" />
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        /<asp:Literal ID="ltlUnit3" runat="server"></asp:Literal>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="请报价"
                                            ControlToValidate="rntbUnitPrice3" ValidationGroup="submitbasic"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        运输费用
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="rntbCOD1" runat="server" Culture="zh-CN" Label="RMB"
                                            MinValue="0" Type="Currency">
                                            <NumberFormat AllowRounding="true" DecimalDigits="2" KeepNotRoundedValue="false" />
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="请报价"
                                            ControlToValidate="rntbCOD1" ValidationGroup="submitbasic"></asp:RequiredFieldValidator>
                                        &nbsp;
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="rntbCOD2" runat="server" Culture="zh-CN" Label="RMB"
                                            MinValue="0" Type="Currency">
                                            <NumberFormat AllowRounding="true" DecimalDigits="2" KeepNotRoundedValue="false" />
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="请报价"
                                            ControlToValidate="rntbCOD2" ValidationGroup="submitbasic"></asp:RequiredFieldValidator>
                                        &nbsp;
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="rntbCOD3" runat="server" Culture="zh-CN" Label="RMB"
                                            MinValue="0" Type="Currency">
                                            <NumberFormat AllowRounding="true" DecimalDigits="2" KeepNotRoundedValue="false" />
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="请报价"
                                            ControlToValidate="rntbCOD3" ValidationGroup="submitbasic"></asp:RequiredFieldValidator>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        其他费用
                                        <telerik:RadTextBox ID="rtbOtherExpName" runat="server" EmptyMessage="请输入费用名称或用途">
                                        </telerik:RadTextBox>
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="rntbOtherCost1" runat="server" Culture="zh-CN" Label="RMB"
                                            MinValue="0" Type="Currency">
                                            <NumberFormat AllowRounding="true" DecimalDigits="2" KeepNotRoundedValue="false" />
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="rntbOtherCost2" runat="server" Culture="zh-CN" Label="RMB"
                                            MinValue="0" Type="Currency">
                                            <NumberFormat AllowRounding="true" DecimalDigits="2" KeepNotRoundedValue="false" />
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="rntbOtherCost3" runat="server" Culture="zh-CN" Label="RMB"
                                            MinValue="0" Type="Currency">
                                            <NumberFormat AllowRounding="true" DecimalDigits="2" KeepNotRoundedValue="false" />
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        总计
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        运输说明
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        其他说明
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <telerik:RadTextBox ID="rtbDeliverComment" runat="server" Width="200" TextMode="MultiLine"
                                            MaxLength="250">
                                        </telerik:RadTextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td colspan="3">
                                        <telerik:RadTextBox ID="rtbComment" runat="server" Width="200" TextMode="MultiLine"
                                            MaxLength="250">
                                        </telerik:RadTextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        最后交货日期
                                    </td>
                                    <td>
                                        <asp:Literal ID="ltlDeliverDate" runat="server"></asp:Literal>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </fieldset>
                        <br />
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="rpvCustomForm" runat="server">
                        <fieldset>
                            <legend>报价</legend>
                            <table border="1">
                                <tr>
                                    <td>
                                        采购零件：<asp:Literal ID="ltlPartNames" runat="server"></asp:Literal>
                                    </td>
                                    <td>
                                        询价单号
                                    </td>
                                    <td>
                                        <asp:Literal ID="ltlTrackingNumbers" runat="server"></asp:Literal>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        上传自定义报价单
                                    </td>
                                    <td>
                                        <asp:Literal ID="ltlAttachmentInfo" runat="server"></asp:Literal>
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
        <telerik:RadAjaxPanel ID="RadAjaxPanel3" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
                                    <td>
                                        <telerik:RadAsyncUpload ID="radAttachment" runat="server" MaxFileInputsCount="1" ToolTip="文件最大不可超过5MB"
                                            TargetFolder="~/Temporary/uploads/com" AllowedFileExtensions=".rar,.zip,.doc,.pdf,.docx,.ppt,.xls"
                                            MaxFileSize="5120000" ReadOnlyFileInputs="true" ControlObjectsVisibility="None"
                                            Culture="zh-CN">
                                            <Localization Select="浏览" />
                                        </telerik:RadAsyncUpload>
                                        <asp:HyperLink ID="lnkAttachment" Target="_blank" Visible="false" runat="server" />
                                    </td>
                                    <td>
                                        <asp:Button ID="btnSubmitAttachment" runat="server" Text="上传" OnClick="btnSubmitAttachment_Click" />
                                        <asp:Button ID="btnDeleteAttachment" runat="server" Visible="false" Text="删除" OnClick="btnDeleteAttachment_Click" />
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
</telerik:RadAjaxPanel>
                                </tr>
                            </table>
                        </fieldset>
                        <br />
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
            </td>
        </tr>
        <tr>
            <td>
                <fieldset>
                    <legend>其他信息</legend>
                    <table>
                        <colgroup>
                            <col />
                            <col width="50" />
                            <col />
                            <col />
                            <col />
                            <col />
                        </colgroup>
                        <tr>
                            <td>
                                报价有效期限
                                <telerik:RadDatePicker ID="rdpExpireDate" Calendar-CultureInfo="zh-CN" Calendar-EnableMultiSelect="false"
                                    runat="server" EnableTyping="false" DateInput-ToolTip="请点击右侧日历选择日期" DatePopupButton-ToolTip="点击这里选择日期">
                                </telerik:RadDatePicker>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="请选择报价有效期限"
                                    ControlToValidate="rdpExpireDate" ValidationGroup="submitbasic"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                            </td>
                            <td>
                                报价币种
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlCurrency" runat="server">
                                    <asp:ListItem Value="CNY" Text="CNY 人民币"></asp:ListItem>
                                    <asp:ListItem Value="USD" Text="USD 美元"></asp:ListItem>
                                    <asp:ListItem Value="GBP" Text="GBP 英镑"></asp:ListItem>
                                    <asp:ListItem Value="HKD" Text="HKD 港币"></asp:ListItem>
                                    <asp:ListItem Value="EUR" Text="EUR 欧元"></asp:ListItem>
                                    <asp:ListItem Value="JPY" Text="JPY 日元"></asp:ListItem>
                                    <asp:ListItem Value="KER" Text="KER 韩元"></asp:ListItem>
                                    <asp:ListItem Value="TWD" Text="TWD 台币"></asp:ListItem>
                                    <asp:ListItem Value="SGD" Text="SGD 新加坡元"></asp:ListItem>
                                    <asp:ListItem Value="CAD" Text="CAD 加元"></asp:ListItem>
                                    <asp:ListItem Value="AUD" Text="AUD 澳元"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </td>
        </tr>
        <tr>
            <td>
                <table>
                    <tr>
                        <td>
                            <asp:Button ID="btnPreview" runat="server" Text="预览" OnClick="btnPreview_Click" />
                        </td>
                        <td>
                            <asp:Button ID="btnReturn" runat="server" Text="返回" Visible="false" OnClick="btnReturn_Click" />
                        </td>
                        <td>
                            <asp:Button ID="btnSave" runat="server" Text="保存报价" CausesValidation="false" OnClick="btnSave_Click"
                                ValidationGroup="submitbasic" />
                        </td>
                        <td>
                            <asp:Button ID="btnSubmit" runat="server" Text="提交报价" OnClick="btnSubmit_Click" ValidationGroup="submitbasic" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
